package org.example.JVM.ByteCode.Handler;


import org.example.JVM.ByteCode.Type.ClassFile;

import java.nio.ByteBuffer;

/**
 * @description:
 * @author: farprt
 * @create: 2022-11-12 16:19
 **/
public interface BaseByteCodeHandler {

    /**
     *@param
     *@return: {@link int}
     *@Author: farprt
     *@date: 2022/11/13 13:46
     *@description: 解释器的排序值
     */
    int order();


    /**
     *@param codeBuf
     *@param classFile
     *@return:
     *@Author: farprt
     *@date: 2022/11/13 13:46
     *@description: 读取
     */
    void read(ByteBuffer codeBuf, ClassFile classFile) throws Exception;

}